<template>
  <div id="app">
    <router-view />
    <div class="nav">
      <router-link to="/home">首页</router-link>
      <router-link to="/cate">分类</router-link>
      <router-link to="/shopcar">购物车</router-link>
      <router-link to="/my">个人中心</router-link>
    </div>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
#app {
  padding-bottom: 60px;
  > .nav {
    // padding: 30px;
    display: flex;
    height: 50px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;

    a {
      flex: 1;
      // border: 1px solid #ccc;
      box-sizing: border-box;
      font-weight: bold;
      color: #2c3e50;
      text-align: center;
      line-height: 50px;

      // &.router-link-exact-active {
      //   color: #42b983;
      // }
    }
    .router-link-exact-active {
      // color: #42b983;
      color: antiquewhite;
      background: #ccc;
    }
  }
}
</style>
